﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DangNhap.ascx.cs" Inherits="WebHousingInfo.Controls.DangNhap" %>
    <div class="team_login">
        <div class="top_team_login"></div>
        <div class="center_team_login">
            <div class="title_login">
	            <p>Dang Nhap</p>
            </div>
            <div class="center_240_other">
                <asp:Panel ID="panelLogin" runat="server">    
                    <table class="tbHeader" align="center" border="0" cellpadding="0" cellspacing="0">
                        <tbody>                                                                       
                            <tr class="trlogin">
                                <td class="regText" align="center" valign="top">
                                    <b>Tên tài khoản</b>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="center">
                                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtUserName" ErrorMessage="*" ValidationGroup="12"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td class="regText" align="center" valign="top">
                                    <b>Mật khẩu</b>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="center">
                                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" 
                                        ValidationGroup="12."></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="txtPassword" ErrorMessage="*" ValidationGroup="12"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="center">
                                    <asp:CheckBox ID="chkLuumatkhau" runat="server" Text=" Lưu mật khẩu" />
                                    &nbsp;
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="center" style="padding-bottom:5px">
                                    <asp:LinkButton ID="linkbuttonForgetPass" runat="server" Text="Quên mật khẩu" 
                                         CausesValidation="False"></asp:LinkButton>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td class="regText" align="center">
                                    <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" 
                                         ValidationGroup="12" onclick="btnLogin_Click" />
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td class="regText" align="center">
                                    <a href="#" align="center">Đăng ký</a>
                                </td>
                            </tr>
                            <tr>
                                <td height="5" align="center">
                                    <asp:Label ID="lblInfo" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" height="5">
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="txtUserName" ErrorMessage="Không nhập ký tự đặc biệt" 
                                        ValidationExpression="[a-z A-Z 0-9]*" ValidationGroup="12"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </asp:Panel> 
                <asp:Panel ID="panelLogined" runat="server" Visible="false">                               
                    <table class="tbHeader"  border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr class="trlogin">
                                <td align="center" colspan="3">
                                    <b>Xin chào: </b><asp:Label ID="lblWellcome" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Image/new.gif" />
                                </td>
                                <td width="10%"></td>
                                <td>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#">Đăng tin nhà đất</asp:HyperLink>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image6" runat="server" ImageUrl="~/Image/new.gif" />
                                </td>
                                <td width="10%"></td>
                                <td>
                                    <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="#">Đăng tin doanh nghiệp</asp:HyperLink>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Image/edit.png" />
                                </td>
                                <td></td>
                                <td>
                                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="#">Quản lý đăng tin</asp:HyperLink>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Image/chgpwd.gif" />
                                </td>
                                <td></td>
                                <td>
                                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="#">Đổi mật khẩu</asp:HyperLink>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Image/persions.gif" />
                                </td>
                                <td></td>
                                <td>
                                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="#">Cá nhân</asp:HyperLink>
                                </td>
                            </tr>
                            <tr class="trlogin">
                                <td align="left" class="style1">
                                    <asp:Image ID="Image5" runat="server" ImageUrl="~/Image/logout.gif" />
                                </td>
                                <td></td>
                                <td align="left">
                                    <asp:LinkButton ID="lbtThoat" runat="server"
                                        CausesValidation="False">Thoát</asp:LinkButton>
                                </td>
                            </tr>
                        </tbody>
                 </table>
                </asp:Panel>
            </div>
        </div>
        <div class="bottom_team_login"></div>	
    </div>	   